//1.引入组件及接口
import {defineStore} from "pinia";
import {reqGetReportData} from "@/api/mock";
// 2.创建实例对象
export const useReportStore = defineStore('reportStore',{
  state(){
    return{
      reportData:{}
    }
  },
  // actions:{async getReportData()=>{
  //   const result = await reqGetReportData()
  //
  actions:{
    async getReportData(){
      this.reportData  = await reqGetReportData()
    }
  }
})